package com.litianyi.blog.controller;

import com.litianyi.blog.entity.SetArtitleLabel;
import com.litianyi.blog.service.SetArtitleLabelService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (SetArtitleLabel)表控制层
 *
 * @author makejava
 * @since 2020-05-13 21:39:20
 */
@RestController
@RequestMapping("setArtitleLabel")
public class SetArtitleLabelController {
    /**
     * 服务对象
     */
    @Resource
    private SetArtitleLabelService setArtitleLabelService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public SetArtitleLabel selectOne(Long id) {
        return this.setArtitleLabelService.queryById(id);
    }

}